// apollo::connector测试
import hello from '../../home';

export default class Hello {
    constructor() {
        this.index = 1;
    }

    get() {
        return hello(this.index);
    }

    set(delta) {
        this.index += delta;
        if (this.index < 1) {
            this.index = 3;
        }
        if (this.index > 3) {
            this.index = 1;
        }
        return this.index;
    }
}
